import Searcher.ASearcher;
import Searcher.ProxySearcher;
import Searcher.RealSearcher;

public class App {
    public static void main(String[] args) throws Exception {
        ASearcher searcher = new ProxySearcher(new RealSearcher("喵喵喵数据库"),
                new int[] { 2, 33, 112, 332, 111, 442 });
        System.err.println(searcher.doSearch("2", "呜呜呜"));
        System.err.println(searcher.doSearch("33", "呜呜呜"));
        System.err.println(searcher.doSearch("99999", "呜呜呜"));
        searcher = new ProxySearcher(new RealSearcher("汪汪汪数据库"),
                new int[] { 233, 111 });
        System.err.println(searcher.doSearch("233", "呜呜呜"));
        System.err.println(searcher.doSearch("332", "呜呜呜"));
        System.err.println(searcher.doSearch("111", "呜呜呜"));
        System.err.println(searcher.doSearch("44444444", "呜呜呜"));

    }
}
